<template>
	<view style="height: 100%;">
		<view class="bg-light fixed-bottom pay-actionsheet pay-actionsheet-show">
			<view class="cg">
				<image :src="cg"></image>
			</view>
			<view class="text-center py-5">
				<text class="h2 font-weight-bold">支付成功!</text>
			</view>
			<view class="font-weight-bold text-center">
				<text class="h3">已支付</text><text class="text-danger font-lg">￥{{money}}</text>
			</view>
			<view class="px-4 py-2 fixed-bottom ">
				<view @click="goindex()" class="bg-info rounded text-center py-3 text-white font-weight-bold font">
					点我返回首页</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				money: 0,
				cg: '/static/icon/zfcg.png'
			}
		},
		onLoad(e) {
			this.money = e.price
		},
		methods: {
			goindex() {
				uni.redirectTo({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss">
	.pay-actionsheet {
		width: 100%;
		height: 100%;
		visibility: hidden;
		transform: translate3d(0, 100%, 0);
		transform-origin: center;
		transition: all 0.3s ease-in-out;
	}

	.pay-actionsheet-show {
		transform: translate3d(0, 0, 0);
		visibility: visible;
	}

	.pay-actionsheet-mask {
		background: rgba(0, 0, 0, 0.6);
		transition: all 0.3s ease-in-out;
		opacity: 0;
		visibility: hidden;
	}

	.pay-mask-show {
		opacity: 1;
		visibility: visible;
	}

	.cg {
		margin-top: 30%;
		margin-left: 39%;
		width: 170rpx;
		height: 170rpx;
	}

	.cg image {
		width: 100%;
		height: 100%;
	}
</style>